package gui;

import javax.swing.JFrame;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JTextArea;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JScrollPane;

public class DialogXL extends JFrame{
	private JFrame me;
	private JButton btnOk;
	public DialogXL(String dialogText) {
		getContentPane().setLayout(null);
		this.me = this;
		this.setSize(480, 300);
		 btnOk = new JButton("Ok");
		btnOk.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				me.setVisible(false);
				me.dispose();
			}
		});
		btnOk.setBounds(166, 198, 89, 23);
		getContentPane().add(btnOk);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(36, 43, 356, 114);
		getContentPane().add(scrollPane);
		
		JTextArea textArea = new JTextArea(dialogText);
		scrollPane.setViewportView(textArea);
		
	}
}
